﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentNHibernate.Mapping;
using Model.Entities;

namespace Model.Mappings
{
    public partial class RMBT_FACILITY_EQUIPMENT_Map : ClassMap<RMBT_FACILITY_EQUIPMENT>
    {
        public RMBT_FACILITY_EQUIPMENT_Map()
        {
            Table("RMBT_FACILITY_EQUIPMENT");
            Id(x => x.EQUID)
                .Length(36);

            Map(x => x.EQUMODEL).Not.Nullable().Length(200);
            Map(x => x.EQUIMANU).Not.Nullable().Length(100);
            Map(x => x.EQUSN).Nullable().Length(30);
            Map(x => x.EQUTYPE).Nullable().Length(2);
            Map(x => x.EQUWORKMODE).Nullable().Length(2);
            Map(x => x.IFBAND).Not.Nullable().Precision(14).Scale(7);
            Map(x => x.DFBAND).Not.Nullable().Precision(14).Scale(7);
            Map(x => x.EQUIP).Not.Nullable().Length(100);
            Map(x => x.EQUPORT).Not.Nullable().Precision(5).Scale(0);
            Map(x => x.STARTFREQ).Nullable().Precision(14).Scale(7);
            Map(x => x.ENDFREQ).Nullable().Precision(14).Scale(7);
            Map(x => x.EQUSTATUS).Nullable().Length(2);
            DoEditableMappings();
        }
    }
}
